import { ecs } from "./core/ecs/ECS";
import { CommonUtil } from "./module/common/CommonUtil";
import { dev } from "./module/config/Config";
import { AccountService, AccountServiceRootSystem } from "./service/account/AccountService";

/** 网关服务器对象 */
export var as: AccountService = null!

function main() {
    dev();

    CommonUtil.init(new AccountServiceRootSystem());

    as = ecs.getEntity<AccountService>(AccountService);
    as.start()
}

main();